﻿<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>告警管理</title>
	<meta name="decorator" content="default"/>
	<tags:import includes="spinner,bootbox,form"></tags:import>
	<script src="${ctxStatic}/modules/invoicing/orderDetail.js"></script>
	<script type="text/javascript">
		var _ctx = '${ctx}';
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#frmSearch").submit();
			return false;
		}
	</script>
</head>
<body>
	<br>
	<form id="frmSearch" modelAttribute="invoicing/orderDetail" action="${ctx}/invoicing/orderDetail/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>		
		<!--添加查询条件-->
        &nbsp;&nbsp;<label>销售单编号 ：</label><input type="text" name="orderId" htmlEscape="false" maxlength="11" class="input-medium"/>
        &nbsp;&nbsp;<label>参考商品资料 ：</label><input type="text" name="orderName" htmlEscape="false" maxlength="50" class="input-medium"/>
        &nbsp;&nbsp;<label>销售人员编号 ：</label><input type="text" name="goodsId" htmlEscape="false" maxlength="11" class="input-medium"/>
		<br>
		<br>
		&nbsp;<button id="btnQuery" class="btn btn-success"" type="submit">查询</button>
		&nbsp;<button id="btnNew" class="btn" type="button" >新增</button>
		&nbsp;<button id="btnDelete" class="btn"  type="button" >删除</button>    	
	</form>
	<br><br>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">		
		<thead><tr>
		<th class="center" style="width: 50px;"><label> <input
						type="checkbox" class="ace" /> <span class="lbl"></span>
				</label>
		</th>
        <th>销售单编号</th>
        <th>参考商品资料</th>
        <th>销售人员编号</th>
		<shiro:hasPermission name="modules/invoicing:orderDetail:edit"><th>操作</th></shiro:hasPermission></tr></thead>
		<tbody>
		<c:forEach items="${pages.list}" var="orderDetail">
		<tr>
		<td class="center">
			<label>
				<input value="${orderDetail.id}" type="checkbox" class="ace" /> 
				<span class="lbl"></span>
			</label>
		</td>
                 <td>${orderDetail.orderId}</td>
                 <td>${orderDetail.orderName}</td>
                 <td>${orderDetail.goodsId}</td>
		<shiro:hasPermission name="modules/invoicing:orderDetail:edit"><td>
			<a href="javascript:onDelete('${orderDetail.id}')">删除</a>
			<a href="javascript:onUpdate('${orderDetail.id}')">编辑</a>
		</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	${pages}
	<!-- 模态窗体 -->
	<div id="modalTable" action="new" class="modal fade" style="width:402px;" tabindex="-1">
		<div class="modal-dialog">
			<div class="modal-content" style="width: 400px; height: 100%;">
				<div class="modal-header no-padding">
					<div class="table-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">
							<span class="white">&times;</span>
						</button>
						<span id='modalTitle'>新增窗体</span>
					</div>
				</div>
				<br>
				<!-- 新增窗体内部 -->
				<form id="frmSubmit" class="form-horizontal" role="form"
					method="post">					
					<input type="hidden" name="userId" value="${userId}" uname="update"/> 
					<input type="hidden" name="id" uname="update"/>
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">销售单编号 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="orderId" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">参考商品资料 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="orderName" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">销售人员编号 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="goodsId" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">订货量 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="goodsAmount" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">计量单位 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="goodsUnit" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">商品规格 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="goodsSpec" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">商品价格 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="goodsPrice" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">下单人 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="orderOwner" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">订单时间 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="orderDate" uname="update"/>
							</div>
						</div>						
				        <div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">备注 : </label>
							<div class="col-sm-9">
								<input type="text" class="col-xs-10"
									name="remark" uname="update"/>
							</div>
						</div>						

					<div class="space-4"></div>
					<div class="clearfix form-actions">
						<div class="center">
							<button id="btnSubmit" class="btn btn-info" type="button">
								<i class="icon-ok bigger-110"></i> 保存
							</button>
							&nbsp; &nbsp; &nbsp;
							<button class="btn" type="reset">
								<i class="icon-undo bigger-110"></i> 重置
							</button>
						</div>
					</div>
				</form>
				<!-- PAGE CONTENT ENDS -->
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
</body>
</html>
